<!--
 * @Author: xiaonancheng
 * @Date: 2023-07-02 14:48:06
 * https://www.cnblogs.com/xiaonancheng
 * Copyright (c) 2023 by @xiaonancheng, All Rights Reserved. 
-->
{% load static %}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>

<body>

    <div class="container">
        <!-- 导航卡 开始 -->
        <div class="row clearfix">
            <div class="col-md-12 column">
                <ul class="nav nav-pills">
                    <li id="index">
                        <a href="/">首页</a>
                    </li>
                    <li id="info">
                        <a href="{% url 'info' %}">简介</a>
                    </li>
                    <li id="search">
                        <a href="{% url 'search' %}">搜索</a>
                    </li>
                    <li>
                        <a href="{% url 'UserAPP:add_user' %}">添加用户</a>
                    </li>

                    <li class="disabled">
                        <a href="#">信息</a>
                    </li>
                    <li class="dropdown pull-right">
                        <a href="#" data-toggle="dropdown" class="dropdown-toggle">下拉<strong class="caret"></strong></a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="#">操作</a>
                            </li>
                            <li>
                                <a href="#">设置栏目</a>
                            </li>
                            <li>
                                <a href="#">更多设置</a>
                            </li>
                            <li class="divider">
                            </li>
                            <li>
                                <a href="#">分割线</a>
                            </li>
                        </ul>
                    </li>
                    {% if request.session.is_login %}
                    <li class="pull-right"><a href="">{{request.session.username}}</a> </li>
                    <li class="pull-right">
                        <a href="{% url 'UserAPP:logout'%}">登出</a>
                    </li>
                    {% else %}
                    <li class="pull-right">
                        <a href="{% url 'UserAPP:login'%}">登陆</a>
                    </li>
                    <li class="pull-right">
                        <a href="{% url 'UserAPP:register'%}">注册</a>
                    </li>
                    {% endif %}
                    
                </ul>
            </div>
        </div>
        <!-- 导航卡 结束 -->
        {% block main %}

        {% endblock %}

        <!-- 页脚 开始 -->
        <div class="row clearfix">
            <div class="col-md-12 column">
                <ul class="list-unstyled">
                    <li>
                        Lorem ipsum dolor sit amet
                    </li>
                    <li>
                        Consectetur adipiscing elit
                    </li>
                    <li>
                        Integer molestie lorem at massa
                    </li>
                    <li>
                        Facilisis in pretium nisl aliquet
                    </li>
                    <li>
                        Nulla volutpat aliquam velit
                    </li>
                    <li>
                        Faucibus porta lacus fringilla vel
                    </li>
                    <li>
                        Aenean sit amet erat nunc
                    </li>
                    <li>
                        Eget porttitor lorem
                    </li>
                </ul>
            </div>
        </div>
        <!-- 页脚 结束-->
    </div>
    <script>
        $("#{{mune}}").addClass('active')
        

    </script>

</body>

</html>